import { RouteConfig } from "vue-router"

export const userRouter: RouteConfig[] = [
    {
        path:"/",
        component:()=> import("@/views/user/user.vue"),
        meta:{
            roles:['admin','editor']
        }
    },
    {
        path:"useredit",
        name:"useredit",
        component:()=> import("@/views/user/user.vue"),
        meta:{
            roles:['admin']
        },
        children:[
            {
                path:"first",
                name:"userfirst",
                component:()=>import("@/views/user/userfirst.vue"),
                meta:{
                    roles:['admin']
                }
            }
        ]
    }
]